<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('online_trade_orders', function (Blueprint $table) {
            $table->id();
            $table->string('order_no')->comment('订单号');
            $table->string('order_ids', 10240)->comment('订单ID列表');
            $table->decimal('total_money')->default(0)->comment('总金额');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('online_trade_orders');
    }
};
